<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="/GoHome.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Order</title>
</head>
<body>
	<div id="result">
		<h3>${requestScope["message"]}</h3>
	</div>
	<form action="/Cs420Web/Order" method="get">
	<tr>
		<td>Choose the delivery address:</td>
		<td><select id="searchType" name="idAddress">
				<c:forEach items="${address}" var="address">
					<option value="${address.idAddress}">${address.numero} ${address.street} ${address.postCode} ${address.city} ${address.country}</option>
				</c:forEach>
		</select></td>
	</tr>
	<br><br><td><input type="submit" value="Add Album Or Book to Order" id="action" name="album"/></td>
	<br><br><td><input type="submit" value="Order" id="action" name="order"/></td>
	</form>
</body>
</html>